package cn.tedu.oa_system.controller;

import cn.tedu.oa_system.base.json_result.ResultDataDto;
import cn.tedu.oa_system.pojo.UserLoginRecord;
import cn.tedu.oa_system.pojo.in.FindLikeKeyIn;
import cn.tedu.oa_system.pojo.in.PageIn;
import cn.tedu.oa_system.service.UserLonginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author MW
 * @Description 在线用户控制器
 * @CreateDate 2023/2/26
 */
@RestController
@RequestMapping("/userloginrecord")
public class UserLoginRecordController {

    @Autowired
    UserLonginRecordService service;

    @PostMapping("/list")
    ResultDataDto<UserLoginRecord> list(@RequestBody PageIn pageIn){
        return service.list(pageIn);
    }

    @PostMapping("/findbasekey")
    ResultDataDto<UserLoginRecord> findbasekey(@RequestBody FindLikeKeyIn baseKeyIn){
        return service.findBaseKey(baseKeyIn);
    }
}
